<?php
/**
 * created by zzy
 * date: 2017/10/24 9:40
 */
namespace App\Api\Service\Routes;

use Dingo\Api\Routing\Router;

class WasteRoute
{
    public function map(Router $router)
    {
        $router->group(['namespace' => 'Waste\Controllers', 'prefix'=>'waste'], function ($router) {

            //收品单位
            $router->any('list', 'IndexController@lists');
            $router->any('edit', 'IndexController@edit');
            $router->any('detail', 'IndexController@detail');
            $router->any('level-list', 'IndexController@level');
            //收品单位-账单
            $router->any('bill-list', 'BillController@lists');
            $router->any('bill-edit', 'BillController@edit');
            //收品单位对应账号登录后
            $router->any('company-list', 'CompanyController@lists');
            $router->any('company-detail', 'CompanyController@detail');
            $router->any('company-bill-bist', 'CompanyController@billList');

            //获取工单废料详情
            $router->any('getOrderWasteDetail', 'IndexController@getOrderWasteDetail');

            //废品员确认废品（废品入库）
            $router->any('orderWasteCheckin', 'IndexController@orderWasteCheckin');


            //废品员卖废品
            $router->any('sellWasteSubmit', 'IndexController@sellWasteSubmit');

            //卖废品时获取废品详情
            $router->any('getWasteInfo', 'IndexController@getWasteInfo');

            //废品卖出记录（収品单位収品记录）
            $router->any('getWasteSellList', 'IndexController@getWasteSellList');

            //废品列表
            $router->any('waste-list', 'WasteController@lists');
            $router->any('waste-water', 'WaterController@index');

            //获得废品出入流水记录
            $router->any('get-water-list', 'WaterController@getWaterList');


            //収品单位查看废品记录详情
            $router->any('getWasteDetail', 'IndexController@getWasteDetail');


        });
    }
}